package OOPS;

class Person4 {
	String name;

	Person4() {
		System.out.println("--- Person() Defs ---");
	}

	{
		System.out.println("*** Instance 1 of Person() ***");
	}

	Person4(String name) {
		System.out.println("--- Person(String) Defs ---");
	}

	{
		System.out.println("*** Instance 1 of Person(String) ***");
	}
	static {
		System.out.println("*** Static 1 of Person() ***");
	}
}

class Student6 extends Person4 {
	int sid;

	Student6(int sid) {
		this.sid = sid;
		System.out.println("--- Student(int) Defs ---");
	}

	{
		System.out.println("*** Instance 1 of Student ***");
	}
	static {
		System.out.println("*** Static 1 of Student ***");
	}

	Student6(String name) {
		this.name = name;
		System.out.println("--- Student(String) Defs ---");
	}

	Student6(int sid, String name) {
		super(name);
		this.sid = sid;
		System.out.println("--- Student(sid,String)  ---");
	}

	{
		System.out.println("*** Instance 2 of Student ***");
	}
	static {
		System.out.println("*** Static 12 of Student ***");
	}

	void show() {
		System.out.println(sid + "\t" + name);
	}
}

class Test47 {
	public static void main(String str[]) {
		new Student6("Sri");
		new Student6(88);
		new Student6(77, "Nivas");
	}
}